package javango.contrib.i18n;

import javango.http.HttpException;
import javango.http.HttpRequest;
import javango.http.HttpResponse;
import javango.middleware.Middleware;

/**
 * Configure Translation with a Provider that just returns the input string with formatting applied. 
 * @author john
 *
 */
public class NOOPI18NMiddleware extends Middleware {

	public static class NoOpProvider extends AbstractI18NProvider {
		
	}
	
	@Override
	public HttpResponse processRequest(HttpRequest req) throws HttpException {
		Translation.setI18NProvider(new NoOpProvider());
		return null;
	}

}
